app.controller('sys_dictionaryViewController', ['$scope', 'httpWrapService', 'dialogs', '$state', '$stateParams',
                        '$location', '$anchorScroll', 'AlertFactory','validationService',
                function ($scope, httpWrapService, dialogs, $state, $stateParams, $location, $anchorScroll, AlertFactory,validationService) {
    $scope.entity = {};
    $scope.id = $stateParams.id;

    if($scope.id) {
        httpWrapService.post('system/dictionary/view/' + $scope.id + '.do').then(function (res) {
            $scope.entity = res.data.entity;
        });
    }
    $scope.canle = function () {
        // 后退到列表页面
        $state.go('app.system.dictionary.list');
    }

}]);
